import instance from '@/utils/request'

// 分页
export const course_page = (form) => instance.post('courses/page', form)

// 新增  编辑
export const insert_edit_course = (form) => instance.post('courses/insert/edit', form)

// 获取课程详情
export const course_one = (id) => instance.get('courses/one/' + id)
// 删除
export const course_delete = (id) => instance.get('courses/delete/' + id)


// 课程列表
export const courseList = () => instance.get('courses/list')
